package com.wee.cronos.client.ui;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.HasMouseOutHandlers;
import com.google.gwt.event.dom.client.HasMouseOverHandlers;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.FlowPanel;

public class MouseAwareFlowPanel extends FlowPanel implements HasMouseOverHandlers, HasMouseOutHandlers, HasClickHandlers 
{ 
	public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) 
    { 
		return addDomHandler(handler, MouseOverEvent.getType());
    }
    
    public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) 
    {
    	return addDomHandler(handler, MouseOutEvent.getType());
    }
    
    public HandlerRegistration addClickHandler(ClickHandler handler) 
    {
        return addDomHandler(handler, ClickEvent.getType());
    }
}